﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace EC2011_hk1_BT3_1041074_1041078_1042119
{
    public partial class DanhSachNhanVien : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string id = Request.QueryString["Id"];
            int intID = int.Parse(id);
            if (intID == 1)
            {
                //GridView1.DataSource = SqlDataSource1;
                
                GridView1.Visible = true;
            }
            else if (intID == 2)
            {
                //DetailsView1.DataSource = SqlDataSource1;
                DetailsView1.Visible = true;
            }
            else if (intID == 3)
            {
                //Repeater1.DataSource = SqlDataSource1;
                Repeater1.Visible = true;
            }

            else if (intID == 4)
            {
                //DataList1.DataSource = SqlDataSource1;
                DataList1.Visible = true;
            }
        }
    }
}